
@import '~qup-component/theme/qup-theme.scss';
@import './element-ui.scss';

$--color-primary: #3DC094;
$--font-color-primary: #606266;

$color-border:#e9e9e9;


html,body{
  position: relative;
  height: 100%;
}
body {
  font-size: 12px;
  color: #333;
}
#app {
  height: 100%;
}

.unifiedBg {
  background-color: white;
}

.table-list-box{
  .table-list-header, .table-list-header th{
    border-top: 0;
  }
}
// 图片预览关闭按钮颜色
/deep/.el-icon-circle-close:before{
  color: white
}
//显示一行  超出部分省略
.tooltip-content{
  width: 100%;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

//滚动条样式
::-webkit-scrollbar-track-piece{
  background-color: transparent;
  border: 0;
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-thumb {
  border-radius: 1em;
  background-color:rgba(50,50,50,.4);
}


.btn-green{
  color: $qup-color-primary !important;
  cursor: pointer;
}
.btn-black{
  color: $--font-color-primary !important;
  cursor: pointer;
}
.color-grey{
  color: #999;
}
.qup-title-box{
  margin-bottom: 10px;
}

// 表格行高亮
.selected-highlight{
  td{
    background-color: #cdf4e8 !important;
  }
  &.hover-row>td{
    background-color: #F5F7FA !important;
  }
}

// 启用禁用
.icon-off {
  margin-right: 10px !important;
  font-size: 16px !important;
  vertical-align: middle !important;
  color: $qup-color-danger;
}

.icon-on {
  margin-right: 10px !important;
  font-size: 16px !important;
  vertical-align: middle !important;
  color: $qup-color-primary;
}
.collect-solid{
  margin-right: 10px !important;
  font-size: 16px !important;
  vertical-align: middle !important;
  color: #FF7E81;
}
//分页通用样式
.pager-box{
  text-align: center;
  margin-top: 40px;

  .el-pagination{

    .el-input__inner{
      font-size: 12px;
    }

    .el-pager li{
      font-size: 12px;
    }
  }
}

// 白底满屏
.all-height{
  background-color: #fff;
  height: calc(100vh - 96px);
}

// 左侧选择列表通用样式
.left-choose-list-box{
  background-color: #fff;
  box-shadow:0px 2px 20px 0px rgba(153,153,153,0.2);

  .left-choose-list-header{
    
    .title{
      position: relative;
      padding: 20px;
      padding-bottom: 10px;

      .add-icon-box{
        position: absolute;
        right: 20px;
        bottom: 6px;

        .add{
          font-size: 24px;
          color: $qup-color-primary;
          cursor: pointer;
        }
      }
    }

    .search{
      padding-left: 20px;
      padding-right: 10px;
      margin-bottom: 10px;

      .el-input__inner{
        border: 0;
        padding-left: 20px !important;
        padding-right: 0 !important;
        height: 20px !important;
        line-height: 20px !important;
      }

      .el-input__prefix{
        left: 0;

        .tree-search-icon{
          font-size: 16px;
          color: $colorA;
          margin-top: 2px;
        }
      }
    }
  }

  .left-choose-list-content{
    padding: 0 20px;
  }
}
/*二级页面页头标题*/
%spacing-styles {
  padding: 10px 20px;
  padding-left: 0;
}
$border-color: #f0f0f0;

.bread-box {
  @extend %spacing-styles;
  display: flex;
  margin: 10px 0;
  font-weight: bold;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid $border-color;

  .el-breadcrumb {
    font-size: 12px;
  }
}


/deep/ .my-mini-btn {
  display: inline-block !important;
  padding: 0 5px !important;
  margin-left: 0 !important;
  margin-right: 10px;

  &:last-child {
    margin-right: 0;
  }
}

// btn容器
.btn-container{
  padding: 10px 0;
  text-align: right;
}
.btn-center{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 0;
}
.btn-end{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 0;
}
.btn-start{
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 0;
}
.enclosure{
  width: 100%;
  min-height: 50px;
  display: flex;
  // justify-content: center;
  align-items: center;
  .elImage{
    width: 40px;
    height: 40px;
  }
}
  /deep/.el-textarea.is-disabled .el-textarea__inner{
    color: #606266;
  }
  /deep/.el-input.is-disabled .el-input__inner {
    color: #606266;
  }
.table-span {
  & /deep/ .el-table__row{
    background-color: #fff !important;
  }
  & /deep/ .hover-row{
    background-color: #fff !important;
  }
  & /deep/ td{
    background-color: #fff !important;
  }
}

.pagination-box{
  /deep/.el-pager li{
    min-width: 28px;
  }
  /deep/.el-pager li.active{
    background-color: #3DC094;
    color: white;
    border-radius: 50%;
  }
  .el-pagination{
    margin-top: 10px;
  }
  /deep/.el-pagination__total{
    float: right;
  }
  /deep/.el-table--mini{
    border: 1px solid #DDDDDD;
  }
  .pagination-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin: 8px 0 !important;
    .el-pagination{
      padding: 2px 0;
    }
    .pagination-info {
      padding: 2px 0 !important;
      font-size: 12px !important;
      .total {
        color: #3DC094;
      }
      .next-page {
        cursor: pointer;
      }
    }
    .el-pagination__jump {
      display: inline-block;
      position: relative;
      top: -4px;
      line-height: 28px;
      margin: 0 20px;
      /deep/ .is-without-controls {
        margin: 0 4px;
        width: 50px !important;
        /deep/ input {
          height: 28px;
        }
      }
    }
  }
}
// 临时解决线上表格不显示边框问题
.el-table th.is-leaf, .el-table td {
  border-bottom: 1px solid #EBEEF5 !important;
}



.table-height-auto {
  .el-table {
    height: auto !important;
    min-height: 68px;
  }
  .el-table__body-wrapper{
    height: auto !important;
    min-height: 68px;
  }
}

th {
  text-align: left;
}
// 模板下载
.template-down{
  // display: flex;
  // align-content: center;
  display: inline-block;
  cursor: pointer;
  &>*{
    margin-right: 10px;
    color: #333;
    font-weight: 600;
  }
}